package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVienHocPhi_MonHoc")
public class Tbl_QLDTTXA_HocVienHocPhi_MonHoc implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien_HocPhi hocVienHocPhiId = null;
   private Tbl_QLDTTXA_MonHoc monHocId = null;
   private Double hocPhiMonHoc;
   private Boolean mienMon;
   private Double tienTraLai;
   private Boolean daDongHP;
   private Double thanhTien;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienHocPhiId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_HocPhi_tbl_QLDTTXA_HocVienHocPhi_MonHoc")
   public Tbl_QLDTTXA_HocVien_HocPhi getHocVienHocPhiId() {
	    return hocVienHocPhiId;
   }
   public void setHocVienHocPhiId(Tbl_QLDTTXA_HocVien_HocPhi hocVienHocPhiId) {
	    this.hocVienHocPhiId=hocVienHocPhiId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="monHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_MonHoc_tbl_QLDTTXA_HocVienHocPhi_MonHoc")
   public Tbl_QLDTTXA_MonHoc getMonHocId() {
	    return monHocId;
   }
   public void setMonHocId(Tbl_QLDTTXA_MonHoc monHocId) {
	    this.monHocId=monHocId;
   }

   public Double getHocPhiMonHoc() {
   	return hocPhiMonHoc;
   }
   public void setHocPhiMonHoc(Double hocPhiMonHoc) {
   	this.hocPhiMonHoc= hocPhiMonHoc;
   }

   public Boolean getMienMon() {
   	return mienMon;
   }
   public void setMienMon(Boolean mienMon) {
   	this.mienMon= mienMon;
   }

   public Double getTienTraLai() {
   	return tienTraLai;
   }
   public void setTienTraLai(Double tienTraLai) {
   	this.tienTraLai= tienTraLai;
   }

   public Boolean getDaDongHP() {
   	return daDongHP;
   }
   public void setDaDongHP(Boolean daDongHP) {
   	this.daDongHP= daDongHP;
   }

   public Double getThanhTien() {
   	return thanhTien;
   }
   public void setThanhTien(Double thanhTien) {
   	this.thanhTien= thanhTien;
   }
}//endClass 

